import React, { PureComponent } from 'react'
/**
 * 
 * 希望如果自身状态数据不变，外部数据props也不变，不重新渲染
 */
export default class Son extends PureComponent {
    componentDidUpdate(){
        console.log('Son componentDidUpdate')
    }
    render() {
        console.log('Son render')
        let {count} = this.props
        return (
            <div>
                <h3>Son</h3>
                <p>props count: {count}</p>
            </div>
        )
    }
}
